package com.netty.tcp.ew.domain;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 缴费户号对象 base_account
 * 
 * @author Mr.wu
 * @date 2023-10-02
 */
public class BaseAccount
{
    private static final long serialVersionUID = 1L;

    /** 户号ID */
    private Integer accountId;

    /** 户号 */

    private String accountCode;

    /** 余额 */

    private BigDecimal accountBalance;

    /** 本金余额 */

    private BigDecimal accountPrincipal;

    /** 赠送余额 */

    private BigDecimal accountSubsidy;

    /** 所属商户 */

    private Integer accountCustomId;

    /** 所属商户 用于下载导入模板和导入*/

    private String customName;


    /** 数据归属 */
    private Integer companyId;

    public void setAccountId(Integer accountId) 
    {
        this.accountId = accountId;
    }

    public Integer getAccountId() 
    {
        return accountId;
    }
    public void setAccountCode(String accountCode) 
    {
        this.accountCode = accountCode;
    }

    public String getAccountCode() 
    {
        return accountCode;
    }
    public void setAccountBalance(BigDecimal accountBalance) 
    {
        this.accountBalance = accountBalance;
    }

    public BigDecimal getAccountBalance() 
    {
        return accountBalance;
    }
    public void setAccountPrincipal(BigDecimal accountPrincipal) 
    {
        this.accountPrincipal = accountPrincipal;
    }

    public BigDecimal getAccountPrincipal() 
    {
        return accountPrincipal;
    }
    public void setAccountSubsidy(BigDecimal accountSubsidy) 
    {
        this.accountSubsidy = accountSubsidy;
    }

    public BigDecimal getAccountSubsidy() 
    {
        return accountSubsidy;
    }
    public void setAccountCustomId(Integer accountCustomId) 
    {
        this.accountCustomId = accountCustomId;
    }

    public Integer getAccountCustomId() 
    {
        return accountCustomId;
    }

    public void setCustomName(String customName){this.customName = customName;}

    public String getCustomName(){return customName;}



    public void setCompanyId(Integer companyId) 
    {
        this.companyId = companyId;
    }

    public Integer getCompanyId() 
    {
        return companyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("accountId", getAccountId())
            .append("accountCode", getAccountCode())
            .append("accountBalance", getAccountBalance())
            .append("accountPrincipal", getAccountPrincipal())
            .append("accountSubsidy", getAccountSubsidy())
            .append("accountCustomId", getAccountCustomId())

            .append("companyId", getCompanyId())
            .toString();
    }
}
